{"ast":null,"code":"import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nvar __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport classNames from 'classnames';\nimport RcTextArea from 'rc-textarea';\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport omit from \"rc-util/es/omit\";\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport DisabledContext from '../config-provider/DisabledContext';\nimport SizeContext from '../config-provider/SizeContext';\nimport { FormItemInputContext } from '../form/context';\nimport { getMergedStatus, getStatusClassNames } from '../_util/statusUtils';\nimport ClearableLabeledInput from './ClearableLabeledInput';\nimport { fixControlledValue, resolveOnChange, triggerFocus } from './Input';\nimport useStyle from './style';\nfunction fixEmojiLength(value, maxLength) {\n  return _toConsumableArray(value || '').slice(0, maxLength).join('');\n}\nfunction setTriggerValue(isCursorInEnd, preValue, triggerValue, maxLength) {\n  let newTriggerValue = triggerValue;\n  if (isCursorInEnd) {\n    // 光标在尾部，直接截断\n    newTriggerValue = fixEmojiLength(triggerValue, maxLength);\n  } else if (_toConsumableArray(preValue || '').length < triggerValue.length && _toConsumableArray(triggerValue || '').length > maxLength) {\n    // 光标在中间，如果最后的值超过最大值，则采用原先的值\n    newTriggerValue = preValue;\n  }\n  return newTriggerValue;\n}\nconst TextArea = /*#__PURE__*/React.forwardRef((_a, ref) => {\n  var {\n      prefixCls: customizePrefixCls,\n      bordered = true,\n      showCount = false,\n      maxLength,\n      className,\n      style,\n      size: customizeSize,\n      disabled: customDisabled,\n      onCompositionStart,\n      onCompositionEnd,\n      onChange,\n      status: customStatus\n    } = _a,\n    props = __rest(_a, [\"prefixCls\", \"bordered\", \"showCount\", \"maxLength\", \"className\", \"style\", \"size\", \"disabled\", \"onCompositionStart\", \"onCompositionEnd\", \"onChange\", \"status\"]);\n  const {\n    getPrefixCls,\n    direction\n  } = React.useContext(ConfigContext);\n  const size = React.useContext(SizeContext);\n  // ===================== Disabled =====================\n  const disabled = React.useContext(DisabledContext);\n  const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;\n  const {\n    status: contextStatus,\n    hasFeedback,\n    feedbackIcon\n  } = React.useContext(FormItemInputContext);\n  const mergedStatus = getMergedStatus(contextStatus, customStatus);\n  const innerRef = React.useRef(null);\n  const clearableInputRef = React.useRef(null);\n  const [compositing, setCompositing] = React.useState(false);\n  const oldCompositionValueRef = React.useRef();\n  const oldSelectionStartRef = React.useRef(0);\n  const [value, setValue] = useMergedState(props.defaultValue, {\n    value: props.value\n  });\n  const {\n    hidden\n  } = props;\n  const handleSetValue = (val, callback) => {\n    if (props.value === undefined) {\n      setValue(val);\n      callback === null || callback === void 0 ? void 0 : callback();\n    }\n  };\n  // =========================== Value Update ===========================\n  // Max length value\n  const hasMaxLength = Number(maxLength) > 0;\n  const onInternalCompositionStart = e => {\n    setCompositing(true);\n    // 拼音输入前保存一份旧值\n    oldCompositionValueRef.current = value;\n    // 保存旧的光标位置\n    oldSelectionStartRef.current = e.currentTarget.selectionStart;\n    onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e);\n  };\n  const onInternalCompositionEnd = e => {\n    var _a;\n    setCompositing(false);\n    let triggerValue = e.currentTarget.value;\n    if (hasMaxLength) {\n      const isCursorInEnd = oldSelectionStartRef.current >= maxLength + 1 || oldSelectionStartRef.current === ((_a = oldCompositionValueRef.current) === null || _a === void 0 ? void 0 : _a.length);\n      triggerValue = setTriggerValue(isCursorInEnd, oldCompositionValueRef.current, triggerValue, maxLength);\n    }\n    // Patch composition onChange when value changed\n    if (triggerValue !== value) {\n      handleSetValue(triggerValue);\n      resolveOnChange(e.currentTarget, e, onChange, triggerValue);\n    }\n    onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e);\n  };\n  const handleChange = e => {\n    let triggerValue = e.target.value;\n    if (!compositing && hasMaxLength) {\n      // 1. 复制粘贴超过maxlength的情况 2.未超过maxlength的情况\n      const isCursorInEnd = e.target.selectionStart >= maxLength + 1 || e.target.selectionStart === triggerValue.length || !e.target.selectionStart;\n      triggerValue = setTriggerValue(isCursorInEnd, value, triggerValue, maxLength);\n    }\n    handleSetValue(triggerValue);\n    resolveOnChange(e.currentTarget, e, onChange, triggerValue);\n  };\n  // ============================== Reset ===============================\n  const handleReset = e => {\n    var _a, _b, _c;\n    handleSetValue('');\n    (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.focus();\n    resolveOnChange((_c = (_b = innerRef.current) === null || _b === void 0 ? void 0 : _b.resizableTextArea) === null || _c === void 0 ? void 0 : _c.textArea, e, onChange);\n  };\n  const prefixCls = getPrefixCls('input', customizePrefixCls);\n  // Style\n  const [wrapSSR, hashId] = useStyle(prefixCls);\n  React.useImperativeHandle(ref, () => {\n    var _a;\n    return {\n      resizableTextArea: (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.resizableTextArea,\n      focus: option => {\n        var _a, _b;\n        triggerFocus((_b = (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.resizableTextArea) === null || _b === void 0 ? void 0 : _b.textArea, option);\n      },\n      blur: () => {\n        var _a;\n        return (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.blur();\n      }\n    };\n  });\n  const textArea = /*#__PURE__*/React.createElement(RcTextArea, Object.assign({}, omit(props, ['allowClear']), {\n    disabled: mergedDisabled,\n    className: classNames({\n      [`${prefixCls}-borderless`]: !bordered,\n      [className]: className && !showCount,\n      [`${prefixCls}-sm`]: size === 'small' || customizeSize === 'small',\n      [`${prefixCls}-lg`]: size === 'large' || customizeSize === 'large'\n    }, getStatusClassNames(prefixCls, mergedStatus), hashId),\n    style: showCount ? {\n      resize: style === null || style === void 0 ? void 0 : style.resize\n    } : style,\n    prefixCls: prefixCls,\n    onCompositionStart: onInternalCompositionStart,\n    onChange: handleChange,\n    onCompositionEnd: onInternalCompositionEnd,\n    ref: innerRef\n  }));\n  let val = fixControlledValue(value);\n  if (!compositing && hasMaxLength && (props.value === null || props.value === undefined)) {\n    // fix #27612 将value转为数组进行截取，解决 '😂'.length === 2 等emoji表情导致的截取乱码的问题\n    val = fixEmojiLength(val, maxLength);\n  }\n  // TextArea\n  const textareaNode = /*#__PURE__*/React.createElement(ClearableLabeledInput, Object.assign({\n    disabled: mergedDisabled\n  }, props, {\n    prefixCls: prefixCls,\n    direction: direction,\n    inputType: \"text\",\n    value: val,\n    element: textArea,\n    handleReset: handleReset,\n    ref: clearableInputRef,\n    bordered: bordered,\n    status: customStatus,\n    style: showCount ? undefined : style,\n    hashId: hashId\n  }));\n  // Only show text area wrapper when needed\n  if (showCount || hasFeedback) {\n    const valueLength = _toConsumableArray(val).length;\n    let dataCount = '';\n    if (typeof showCount === 'object') {\n      dataCount = showCount.formatter({\n        value: val,\n        count: valueLength,\n        maxLength\n      });\n    } else {\n      dataCount = `${valueLength}${hasMaxLength ? ` / ${maxLength}` : ''}`;\n    }\n    return /*#__PURE__*/React.createElement(\"div\", {\n      hidden: hidden,\n      className: classNames(`${prefixCls}-textarea`, {\n        [`${prefixCls}-textarea-rtl`]: direction === 'rtl',\n        [`${prefixCls}-textarea-show-count`]: showCount\n      }, getStatusClassNames(`${prefixCls}-textarea`, mergedStatus, hasFeedback), className, hashId),\n      style: style,\n      \"data-count\": dataCount\n    }, textareaNode, hasFeedback && /*#__PURE__*/React.createElement(\"span\", {\n      className: `${prefixCls}-textarea-suffix`\n    }, feedbackIcon));\n  }\n  return wrapSSR(textareaNode);\n});\nexport default TextArea;","map":{"version":3,"names":["_toConsumableArray","__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","classNames","RcTextArea","useMergedState","omit","React","ConfigContext","DisabledContext","SizeContext","FormItemInputContext","getMergedStatus","getStatusClassNames","ClearableLabeledInput","fixControlledValue","resolveOnChange","triggerFocus","useStyle","fixEmojiLength","value","maxLength","slice","join","setTriggerValue","isCursorInEnd","preValue","triggerValue","newTriggerValue","TextArea","forwardRef","_a","ref","prefixCls","customizePrefixCls","bordered","showCount","className","style","size","customizeSize","disabled","customDisabled","onCompositionStart","onCompositionEnd","onChange","status","customStatus","props","getPrefixCls","direction","useContext","mergedDisabled","contextStatus","hasFeedback","feedbackIcon","mergedStatus","innerRef","useRef","clearableInputRef","compositing","setCompositing","useState","oldCompositionValueRef","oldSelectionStartRef","setValue","defaultValue","hidden","handleSetValue","val","callback","undefined","hasMaxLength","Number","onInternalCompositionStart","current","currentTarget","selectionStart","onInternalCompositionEnd","handleChange","target","handleReset","_b","_c","focus","resizableTextArea","textArea","wrapSSR","hashId","useImperativeHandle","option","blur","createElement","assign","resize","textareaNode","inputType","element","valueLength","dataCount","formatter","count"],"sources":["/data/messenger.client/node_modules/antd/es/input/TextArea.js"],"sourcesContent":["import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nvar __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport classNames from 'classnames';\nimport RcTextArea from 'rc-textarea';\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport omit from \"rc-util/es/omit\";\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport DisabledContext from '../config-provider/DisabledContext';\nimport SizeContext from '../config-provider/SizeContext';\nimport { FormItemInputContext } from '../form/context';\nimport { getMergedStatus, getStatusClassNames } from '../_util/statusUtils';\nimport ClearableLabeledInput from './ClearableLabeledInput';\nimport { fixControlledValue, resolveOnChange, triggerFocus } from './Input';\nimport useStyle from './style';\nfunction fixEmojiLength(value, maxLength) {\n  return _toConsumableArray(value || '').slice(0, maxLength).join('');\n}\nfunction setTriggerValue(isCursorInEnd, preValue, triggerValue, maxLength) {\n  let newTriggerValue = triggerValue;\n  if (isCursorInEnd) {\n    // 光标在尾部，直接截断\n    newTriggerValue = fixEmojiLength(triggerValue, maxLength);\n  } else if (_toConsumableArray(preValue || '').length < triggerValue.length && _toConsumableArray(triggerValue || '').length > maxLength) {\n    // 光标在中间，如果最后的值超过最大值，则采用原先的值\n    newTriggerValue = preValue;\n  }\n  return newTriggerValue;\n}\nconst TextArea = /*#__PURE__*/React.forwardRef((_a, ref) => {\n  var {\n      prefixCls: customizePrefixCls,\n      bordered = true,\n      showCount = false,\n      maxLength,\n      className,\n      style,\n      size: customizeSize,\n      disabled: customDisabled,\n      onCompositionStart,\n      onCompositionEnd,\n      onChange,\n      status: customStatus\n    } = _a,\n    props = __rest(_a, [\"prefixCls\", \"bordered\", \"showCount\", \"maxLength\", \"className\", \"style\", \"size\", \"disabled\", \"onCompositionStart\", \"onCompositionEnd\", \"onChange\", \"status\"]);\n  const {\n    getPrefixCls,\n    direction\n  } = React.useContext(ConfigContext);\n  const size = React.useContext(SizeContext);\n  // ===================== Disabled =====================\n  const disabled = React.useContext(DisabledContext);\n  const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;\n  const {\n    status: contextStatus,\n    hasFeedback,\n    feedbackIcon\n  } = React.useContext(FormItemInputContext);\n  const mergedStatus = getMergedStatus(contextStatus, customStatus);\n  const innerRef = React.useRef(null);\n  const clearableInputRef = React.useRef(null);\n  const [compositing, setCompositing] = React.useState(false);\n  const oldCompositionValueRef = React.useRef();\n  const oldSelectionStartRef = React.useRef(0);\n  const [value, setValue] = useMergedState(props.defaultValue, {\n    value: props.value\n  });\n  const {\n    hidden\n  } = props;\n  const handleSetValue = (val, callback) => {\n    if (props.value === undefined) {\n      setValue(val);\n      callback === null || callback === void 0 ? void 0 : callback();\n    }\n  };\n  // =========================== Value Update ===========================\n  // Max length value\n  const hasMaxLength = Number(maxLength) > 0;\n  const onInternalCompositionStart = e => {\n    setCompositing(true);\n    // 拼音输入前保存一份旧值\n    oldCompositionValueRef.current = value;\n    // 保存旧的光标位置\n    oldSelectionStartRef.current = e.currentTarget.selectionStart;\n    onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e);\n  };\n  const onInternalCompositionEnd = e => {\n    var _a;\n    setCompositing(false);\n    let triggerValue = e.currentTarget.value;\n    if (hasMaxLength) {\n      const isCursorInEnd = oldSelectionStartRef.current >= maxLength + 1 || oldSelectionStartRef.current === ((_a = oldCompositionValueRef.current) === null || _a === void 0 ? void 0 : _a.length);\n      triggerValue = setTriggerValue(isCursorInEnd, oldCompositionValueRef.current, triggerValue, maxLength);\n    }\n    // Patch composition onChange when value changed\n    if (triggerValue !== value) {\n      handleSetValue(triggerValue);\n      resolveOnChange(e.currentTarget, e, onChange, triggerValue);\n    }\n    onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e);\n  };\n  const handleChange = e => {\n    let triggerValue = e.target.value;\n    if (!compositing && hasMaxLength) {\n      // 1. 复制粘贴超过maxlength的情况 2.未超过maxlength的情况\n      const isCursorInEnd = e.target.selectionStart >= maxLength + 1 || e.target.selectionStart === triggerValue.length || !e.target.selectionStart;\n      triggerValue = setTriggerValue(isCursorInEnd, value, triggerValue, maxLength);\n    }\n    handleSetValue(triggerValue);\n    resolveOnChange(e.currentTarget, e, onChange, triggerValue);\n  };\n  // ============================== Reset ===============================\n  const handleReset = e => {\n    var _a, _b, _c;\n    handleSetValue('');\n    (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.focus();\n    resolveOnChange((_c = (_b = innerRef.current) === null || _b === void 0 ? void 0 : _b.resizableTextArea) === null || _c === void 0 ? void 0 : _c.textArea, e, onChange);\n  };\n  const prefixCls = getPrefixCls('input', customizePrefixCls);\n  // Style\n  const [wrapSSR, hashId] = useStyle(prefixCls);\n  React.useImperativeHandle(ref, () => {\n    var _a;\n    return {\n      resizableTextArea: (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.resizableTextArea,\n      focus: option => {\n        var _a, _b;\n        triggerFocus((_b = (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.resizableTextArea) === null || _b === void 0 ? void 0 : _b.textArea, option);\n      },\n      blur: () => {\n        var _a;\n        return (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.blur();\n      }\n    };\n  });\n  const textArea = /*#__PURE__*/React.createElement(RcTextArea, Object.assign({}, omit(props, ['allowClear']), {\n    disabled: mergedDisabled,\n    className: classNames({\n      [`${prefixCls}-borderless`]: !bordered,\n      [className]: className && !showCount,\n      [`${prefixCls}-sm`]: size === 'small' || customizeSize === 'small',\n      [`${prefixCls}-lg`]: size === 'large' || customizeSize === 'large'\n    }, getStatusClassNames(prefixCls, mergedStatus), hashId),\n    style: showCount ? {\n      resize: style === null || style === void 0 ? void 0 : style.resize\n    } : style,\n    prefixCls: prefixCls,\n    onCompositionStart: onInternalCompositionStart,\n    onChange: handleChange,\n    onCompositionEnd: onInternalCompositionEnd,\n    ref: innerRef\n  }));\n  let val = fixControlledValue(value);\n  if (!compositing && hasMaxLength && (props.value === null || props.value === undefined)) {\n    // fix #27612 将value转为数组进行截取，解决 '😂'.length === 2 等emoji表情导致的截取乱码的问题\n    val = fixEmojiLength(val, maxLength);\n  }\n  // TextArea\n  const textareaNode = /*#__PURE__*/React.createElement(ClearableLabeledInput, Object.assign({\n    disabled: mergedDisabled\n  }, props, {\n    prefixCls: prefixCls,\n    direction: direction,\n    inputType: \"text\",\n    value: val,\n    element: textArea,\n    handleReset: handleReset,\n    ref: clearableInputRef,\n    bordered: bordered,\n    status: customStatus,\n    style: showCount ? undefined : style,\n    hashId: hashId\n  }));\n  // Only show text area wrapper when needed\n  if (showCount || hasFeedback) {\n    const valueLength = _toConsumableArray(val).length;\n    let dataCount = '';\n    if (typeof showCount === 'object') {\n      dataCount = showCount.formatter({\n        value: val,\n        count: valueLength,\n        maxLength\n      });\n    } else {\n      dataCount = `${valueLength}${hasMaxLength ? ` / ${maxLength}` : ''}`;\n    }\n    return /*#__PURE__*/React.createElement(\"div\", {\n      hidden: hidden,\n      className: classNames(`${prefixCls}-textarea`, {\n        [`${prefixCls}-textarea-rtl`]: direction === 'rtl',\n        [`${prefixCls}-textarea-show-count`]: showCount\n      }, getStatusClassNames(`${prefixCls}-textarea`, mergedStatus, hasFeedback), className, hashId),\n      style: style,\n      \"data-count\": dataCount\n    }, textareaNode, hasFeedback && /*#__PURE__*/React.createElement(\"span\", {\n      className: `${prefixCls}-textarea-suffix`\n    }, feedbackIcon));\n  }\n  return wrapSSR(textareaNode);\n});\nexport default TextArea;"],"mappings":"AAAA,OAAOA,kBAAkB,MAAM,8CAA8C;AAC7E,IAAIC,MAAM,GAAG,IAAI,IAAI,IAAI,CAACA,MAAM,IAAI,UAAUC,CAAC,EAAEC,CAAC,EAAE;EAClD,IAAIC,CAAC,GAAG,CAAC,CAAC;EACV,KAAK,IAAIC,CAAC,IAAIH,CAAC,EAAE,IAAII,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACP,CAAC,EAAEG,CAAC,CAAC,IAAIF,CAAC,CAACO,OAAO,CAACL,CAAC,CAAC,GAAG,CAAC,EAAED,CAAC,CAACC,CAAC,CAAC,GAAGH,CAAC,CAACG,CAAC,CAAC;EAChG,IAAIH,CAAC,IAAI,IAAI,IAAI,OAAOI,MAAM,CAACK,qBAAqB,KAAK,UAAU,EAAE,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEP,CAAC,GAAGC,MAAM,CAACK,qBAAqB,CAACT,CAAC,CAAC,EAAEU,CAAC,GAAGP,CAAC,CAACQ,MA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